package yhq.config;

import yhq.webmagic.YhqTry;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by yanghongquan on 2018/8/31 15:41
 */
public class YhqData {

    private final static List<YhqTry> fxhList = new ArrayList<>();

    public static void reset(){
        fxhList.clear();
    }
    public static void  add(Object data){
        if(data instanceof YhqTry){
            fxhList.add((YhqTry)data);
        }
    }
    public static List get(Object data){
        if(data instanceof YhqTry){
            return fxhList;
        }
        return null;
    }
}
